
if (typeof(ChromecastPlayer) == 'undefined'){
  ChromecastPlayer = {};
}

ChromecastPlayer.Play = function(url) {
  console.log("Setting up new audio to play url: " + url);
  var audio = new Audio(url);
  console.log("Playing url");
  audio.play();
}